package com.weilx959.spt.core.utils;

import org.apache.commons.lang3.StringUtils;

public class StringUtil {
    private StringUtil() {}

    public static String convertToCssClass(String str) {
        if (StringUtils.isBlank(str)) {
            return null;
        }
        return str.trim().toLowerCase().replace("\n|\r|\t", "").replace(" ", "-");
    }
}
